package com.spj.service.impl;

import com.spj.dao.UserDao;
import com.spj.entity.User;
import com.spj.service.UserServiceDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Service;

/**
 * @author :spj
 * @Date:2022/4/7
 * @description:
 */
@Service
public class UserServiceDaoImpl implements UserServiceDao {
    @Autowired(required = false)
    UserDao dao;
    @Override
    public User findUser(int id) {
        return dao.findById(id);
    }
}
